/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.card.service;

import org.springframework.web.multipart.MultipartFile;
import top.continew.admin.card.model.query.BusinessCardQuery;
import top.continew.admin.card.model.req.BusinessCardReq;
import top.continew.admin.card.model.resp.BusinessCardDetailResp;
import top.continew.admin.card.model.resp.BusinessCardResp;
import top.continew.starter.extension.crud.service.BaseService;

import java.io.IOException;

/**
 * 微信名片业务接口
 *
 * @author floyd
 * @since 2024/11/22 15:10
 */
public interface BusinessCardService extends BaseService<BusinessCardResp, BusinessCardDetailResp, BusinessCardQuery, BusinessCardReq> {

    /**
     * 上传头像
     *
     * @param avatar 头像文件
     * @return 新头像路径
     * @throws IOException /
     */
    String getAvatar(MultipartFile avatar) throws IOException;

    void saveIntroduces(BusinessCardReq req, long cardId);
}